Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@vaadin/vaadin-development-mode-detector

Package Overview
Dependencies
Maintainers
14
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vaadin/vaadin-development-mode-detector

Element for detecting that an application using Vaadin Elements is running in development mode

  • 1.1.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
68K
decreased by-33.24%
Maintainers
14
Weekly downloads
 
Created
Source

Utility method for detecting that an application using Vaadin Elements is running in development mode

Running Tests

There are no automatic tests as the functionality depends on the host the code is run on (localhost vs others) and the bundling status.

To verify functionality:

  1. Run bower install
  2. Run cd test && bower install ; cd ..
  3. Run polyserve -H 0.0.0.0
  4. Open http://localhost:8080/test/index.html
  5. Verify that mode is development (green)
  6. Verify that importIfDevelopmentMode is imported (green)
  7. Open http://<yourip>:8080/test/index.html
  8. Verify that mode is production (orange)
  9. Verify that importIfDevelopmentMode is ignored (orange)
  10. Run cd test/bower_components && ln -s ../../vaadin-development-mode-detector.html && cd .. && polymer build --bundle
  11. Open http://localhost:8080/test/build/default/index.html
  12. Verify that mode is production (orange)
  13. Verify that importIfDevelopmentMode is ignored (orange)
  14. Open http://<yourip>:8080/test/build/default/index.html
    1. Verify that mode is production (orange)
    2. Verify that importIfDevelopmentMode is ignored (orange)

FAQs

Package last updated on 24 Oct 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc